package com.prd.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>
 * 客户-来往沟通记录
 * </p>
 *
 * @author o1
 * @since 2023-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("customer_comm_record")
public class CustomerCommRecordDO implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 编号
     */
    private String no;


    /**
     * 沟通方式
     */
    private String commWay;

    /**
     * 主题
     */
    private String theme;

    /**
     * 地点
     */
    private String commAddress;

    /**
     * 时间
     */
    private Date commDatetime;

    /**
     * 内容描述
     */
    private String commContent;

    /**
     * 礼物名称
     */
    private String commGiftName;

    /**
     * 当次成本
     */
    private int commGiftPrice;

    /**
     * 累计礼物成本
     */
    private int commGiftTotalPrice;

    @Override
    public int hashCode() {
        return Objects.hashCode(id) & Integer.MAX_VALUE;
    }
}
